package com.cj.dao;
import com.cj.po.Classes;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClassDao {
    /**
     * 进行分页查询
     */

    //获取总条数
    public Integer totalCount1(@Param("c_classid") Integer c_classid,@Param("c_classname") String c_classname,
                              @Param("c_counsellor") String c_counsellor);
    //获取用户列表
    public List<Classes> getClassList(@Param("c_classid") Integer c_classid, @Param("c_classname") String c_classname,
                                      @Param("c_counsellor") String c_counsellor, @Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize);

    Classes findClassById(Integer c_id);
    List<Classes> getAll();
    List<Classes> getClassAndStudent();

    public int addClass(Classes classes);
    public int deleteClass(Integer c_id);
    public int updateClass(Classes classes);
}
